package com.zhengbing.tj.design.decorator;

/**
 * 装饰器模式-日志装饰器
 *
 * @author zhengbing
 * @date 2025-07-21
 */
public class LoggingDecorator extends Decorator {
    public LoggingDecorator(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        System.out.println("[日志] 操作开始");
        super.operation();
        System.out.println("[日志] 操作结束");
    }
} 